Repository navigation
[FIX] queue_job_cron_jobrunner: honour RetryableJobError seconds - #3
Merged
Merged
Conversation
The cron runner always postponed a job raising RetryableJobError by 5 seconds, ignoring err.seconds and the retry pattern of the job function. Follow queue_job's controller: use err.seconds, then the retry pattern; keep 5 seconds when neither is set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
queue_job_cron_jobrunner and queue_job_subscribe are installable on 19.0: drop them from the excluded addons and regenerate the README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix noted while migrating
queue_job_cron_jobrunnerto 20.0 (#2), applied on 19.0.RetryableJobError, the cron runner always postponed the job by 5 seconds and ignorederr.secondsand the retry pattern of the job function. It now behaves likequeue_job's controller: it useserr.seconds(an int or a(min, max)tuple), then the retry pattern, and keeps the 5 seconds when neither is set.queue_job_cron_jobrunnerandqueue_job_subscribeare removed from the "not installable" list, and the README ofqueue_job_subscribeis regenerated.Version 19.0.1.0.1, readme/HISTORY.md added.
Tests (local; CI does not run on the organisation at the moment): 3 new tests (
seconds, retry pattern, default). 8 tests, 0 failures, 0 module warnings, run with-i queue_job_cron_jobrunner --skip-auto-install --test-tags=/queue_job_cron_jobrunner. Thesecondsand retry pattern tests fail on the previous code.pre-commit run -ais clean.Not changed (upstream limitations, see ROADMAP): channel capacity and priority are ignored, the
startedstate is not committed, and the runner stops when it reacheslimit_time_real_cron.🤖 Generated with Claude Code